package com.zy.explore.search.interfaces.facade.v1;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 建类说明：指数外观
 *
 * @author 中国印
 * @date 2022年02月10日 00:37:56
 */
@ApiIgnore
@Controller
public class IndexFacade {

    /**
     * 数据库搜索首页
     */
    @RequestMapping("/index")
    public ModelAndView index(){
        ModelAndView mav = new ModelAndView("search");
        mav.addObject("type","db");
        return mav;
    }

    /**
     * 文档搜索首页
     */
    @RequestMapping("/file")
    public ModelAndView docIndex(){
        ModelAndView mav = new ModelAndView("search");
        mav.addObject("type","file");
        return mav;
    }
}
